#-*- coding: utf-8 -*-
#! /usr/bin/python

import sys
import logging

reload(sys)
sys.setdefaultencoding("utf-8")

def logme(info, file='searchlog.txt'):
    logger=logging.getLogger()
    logger.setLevel(logging.NOTSET)
    handler=logging.FileHandler(file)
    logger.addHandler(handler)
    logger.info(info)

#logme('test')
#logme('吃饭')
logme('fsfggg广告歌','newlog.txt')
